package com.nwpu.server.search.service;

import com.nwpu.server.search.entity.NetworkRelationshipEntity;
import org.springframework.data.elasticsearch.annotations.Highlight;
import org.springframework.data.elasticsearch.annotations.HighlightField;
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.elasticsearch.core.SearchHits;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.awt.print.Book;

/**
 * @Author: YuXingZh
 * @Date: Created in 16:43 2022-06-26
 * @Description:
 */
@Repository
public interface NetworkRelationshipRepository extends ElasticsearchRepository<NetworkRelationshipEntity, String> {

//    @Highlight(fields = {
//            @HighlightField(name = "name"),
//            @HighlightField(name = "source"),
//            @HighlightField(name = "entities"),
//            @HighlightField(name = "classification"),
//            @HighlightField(name = "description")
//    })
//    SearchHits<Book> find(String keyword);
}
